from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.action_chains import ActionChains
import time
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait




# driver = webdriver.Edge()
# driver.maximize_window()
# driver.get('https://126.com/')
# time.sleep(2)
# driver.switch_to.frame(driver.find_element(By.XPATH,'//iframe[starts-with(@id,"x-URS-iframe1755313")]'))
# driver.find_element(By.XPATH,'//input[starts-with(@id,"auto-id-17553")]').send_keys('13012558376')
# time.sleep(5)


driver=webdriver.Edge()
driver.get('https://www.kongfz.cn/')
time.sleep(5)
xs = WebDriverWait(driver,20,0.5).until(EC.presence_of_element_located((By.CLASS_NAME,'login-btn')))
xs.click()

